<title>支付账户</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">

<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="#(assets)/js/app.js"></script>
<script type="text/javascript" src="#(assets)/js/layer/layer.js"></script>
<style> 
	*{margin:0;padding:0;}
	body{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";}
	li{list-style-type:none;}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
</style>
#@checkToken()
<body bgcolor="#f4f5f9" style="margin:0px;">
<div align=center>
	<div align="left" style="background:#fff;height:50px;line-height:50px;width:100%;margin-top:20px;">
		<span style="margin-left:20px;" id="bank_card"></span>
	</div>
	<div align="left" style="background:#fff;height:50px;line-height:50px;width:100%;border-top:1px solid #f0f0f0">
		<span style="margin-left:20px;" id="bank_name"></span>
	</div>
	<div align="left" style="background:#fff;height:50px;line-height:50px;width:100%;border-top:1px solid #f0f0f0">
		<span style="margin-left:20px;" id="city"></span>
	</div>

	<div id="changepass" style="height:50px;width:100%;background:#FFF;margin-top:10px;">
		<div style="width:90%;">
			<div align="left" style="float:left;color:#383838;">
				<div style="font-size:16px;color:#373737;line-height:50px;">修改支付密码</div>
			</div>
			<div style="float:right;line-height:60px;"><span id="mobile"></span> <img style="width:18px;margin-top:18px;float:right" src="#(assets)/images/mobile/personal_jiantou2.png"></div>
		</div>
	</div>
	<div onclick="window.location.href='/app/page/user-bankout'" style="height:50px;width:100%;background:#FFF;border-top:1px solid #f0f0f0">
		<div style="width:90%;">
			<div align="left" style="float:left;color:#383838;">
				<div style="font-size:16px;color:#373737;line-height:50px;">解绑银行卡</div>
			</div> 
			<div style="float:right;line-height:60px;"><span id="mobile"></span> <img style="width:18px;margin-top:18px;float:right" src="#(assets)/images/mobile/personal_jiantou2.png"></div>
		</div>
	</div> 
	<div id="delekou" style="height:50px;width:100%;background:#FFF;border-top:1px solid #f0f0f0">
		<div style="width:90%;">
			<div align="left" style="float:left;color:#383838;">
				<div style="font-size:16px;color:#373737;line-height:50px;">解除委托扣款</div>
			</div>
			<div style="float:right;line-height:60px;"><span id="mobile"></span> <img style="width:18px;margin-top:18px;float:right" src="#(assets)/images/mobile/personal_jiantou2.png"></div>
		</div>
	</div>
	<div id="changekou" style="height:50px;width:100%;background:#FFF;border-top:1px solid #f0f0f0">
		<div style="width:90%;">
			<div align="left" style="float:left;color:#383838;">
				<div style="font-size:16px;color:#373737;line-height:50px;">修改委托扣款</div>
			</div>
			<div style="float:right;line-height:60px;"><span id="mobile"></span> <img style="width:18px;margin-top:18px;float:right" src="#(assets)/images/mobile/personal_jiantou2.png"></div>
		</div>
	</div>
</div>
<script> 
	var url ="#(path)/card/mainCard?token=#(session.token??)";
	$.getJSON(url, function(datainfo) {
		console.log(datainfo);
		$("#bank_card").html("卡号："+datainfo.data.card.bank_account.substring(0,4)+"****"+datainfo.data.card.bank_account.substring(15,19));
		$("#bank_name").html("开户行："+datainfo.data.card.bank_name);
		$("#city").html("开户行所在地："+datainfo.data.card.province+" "+datainfo.data.card.city);
	});
	$.getJSON("#(path)/user/modifyPayPassword?token=#(session.token??)", function(datainfo) {
		$("#changepass").click(function(){
			window.location.href=datainfo.data.url;
		});
	});
	$.getJSON("#(path)/user/modifyWithholdAuthority?token=#(session.token??)", function(datainfo) {
		$("#changekou").click(function(){
			window.location.href=datainfo.data.url;
		});
	});
	$.getJSON("#(path)/user/relieveWithholdAuthority?token=#(session.token??)", function(datainfo) {
		$("#delekou").click(function(){
			window.location.href=datainfo.data.url;
		});
	});
</script>
</body>